#!/usr/bin/env bash

source ./init.sh
source ./common/php.sh

php_install

case "${1}" in
	install)
		php_install
		;;
	rebuild)
		php_install 1
		;;
	fpm-conf)
		php_mk_fpm_conf
		;;
	fpm-sh)
		php_mk_sh
		;;
	ini)
		php_mk_ini
		;;
	bin)
		php_mk_bin
		;;
#	ext)
#
#		;;
	*)
		echo "Usage: ./php.sh {install|rebuild|fpm-conf|fpm-sh|ini|bin}"
		;;
esac